package com.example.finalproject;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.Nullable;
public class MyCollectOpenHelper extends SQLiteOpenHelper {
    public MyCollectOpenHelper( Context context, String name,  SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }
    @Override
    //新建表
    public void onCreate(SQLiteDatabase db) {

        String sql =("create table collect_list(id integer primary key autoincrement,name varchar(20),material varchar, step varchar )");
        db.execSQL(sql);
    }
    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}